Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests to PPS Source Activate function #395

Closed
wants to merge 1 commit into from

Conversation

crmdias
Copy link
Contributor

@crmdias crmdias commented Sep 12, 2024

Summary:
WHAT?

Adds tests to ActivatePPSSource function

WHY?

Ensuring functional correctnes, ensuring edge cases work and making the code more maintainable for the future

Considerations:

That's a lot of code!

  • Yeah, but it is necessary to do the rigging for testing the syscalls

Why do you have machBy with return true?

  • To dereference the pointer of the struct passed as argument, and then assert it with require.Equals, which gives nice comparison logs

Reviewed By: leoleovich

Differential Revision: D62447639

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Sep 12, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62447639

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62447639

crmdias added a commit to crmdias/time that referenced this pull request Sep 12, 2024
Summary:
Pull Request resolved: facebook#395

WHAT?

Adds tests to ActivatePPSSource function

WHY?

Ensuring functional correctnes, ensuring edge cases work and making the code more maintainable for the future

Considerations:

That's a lot of code!
 - Yeah, but it is necessary to do the rigging for testing the syscalls

Why do you have machBy with return true?
 - To dereference the pointer of the struct passed as argument, and then assert it with require.Equals, which gives nice comparison logs

Reviewed By: leoleovich

Differential Revision: D62447639
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62447639

Summary:
Pull Request resolved: facebook#395

WHAT?

Adds tests to ActivatePPSSource function

WHY?

Ensuring functional correctnes, ensuring edge cases work and making the code more maintainable for the future

Considerations:

That's a lot of code!
 - Yeah, but it is necessary to do the rigging for testing the syscalls

Why do you have matchBy with return true?
 - To dereference the pointer of the struct passed as argument, and then assert it with require.Equals, which gives nice comparison logs

Reviewed By: leoleovich

Differential Revision: D62447639
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62447639

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4d61e17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants